package test.springAop;

import java.util.Date;

public class TimeHandler {


    private ThreadLocal<Date> threadLocal = new ThreadLocal<>();
    public void printTime() {
        System.out.println("CurrentTime = " + System.currentTimeMillis());

        Date rundomDate = DateUtils.getRundomDate(null);
        threadLocal.set(rundomDate);
        System.out.println(DateUtils.getDateString(threadLocal.get()));
    }
}